{extend name='admin@main'}
{block name="content"}
<div class="think-box-shadow">
    {include file='trade/search_date_range'}
    <table class="layui-table margin-top-10" lay-skin="line" >
        {notempty name='list'}
        <thead>
        <tr>
            <th class="text-left nowrap">日期</th>
            <th class='text-left'>渠道</th>
            <th class='text-left'>新增</th>
            <th class='text-left'>当日付费人数</th>
            <th class='text-left'>次日付费人数</th>
            <th class='text-left'>3日付费人数</th>
            <th class='text-left'>7日付费人数</th>
            <th class='text-left'>30日付费人数</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
            <tr>
                <td class='text-left nowrap'>{$vo.date}</td>
                <td class='text-left nowrap'>
                    {eq name='$vo.channel_name' value='0' }
                        官方-0-渠道
                    {else}
                    {$vo.channel_name}
                    {/eq}
                </td>
                <td class='text-left nowrap'>{$vo.dru}</td>
                <td class='text-left nowrap'>{$vo.addrechrge_number}</td>
                <td class='text-left nowrap'>{$vo.trade.day2}</td>
                <td class='text-left nowrap'>{$vo.trade.day3}</td>
                <td class='text-left nowrap'>{$vo.trade.day7}</td>
                <td class='text-left nowrap'>{$vo.trade.day30}</td>
            </tr>
        {/foreach}
        </tbody>
    </table>
    {$pages | Raw}
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
